import socket


class SocketClient:
    def __init__(self, host="10.11.122.75", port=10011):
        self.host = host
        self.port = port

    def connect(self):
        self.socket = socket.socket()
        self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
        self.socket.connect((self.host, self.port))
        return self.socket

    def close(self):
        self.socket.close()
